use std::fs;
use std::path::{Path, PathBuf};

pub fn list_dir(dir_name: &str) -> Vec<PathBuf> {
    let paths = fs::read_dir(dir_name).unwrap();
    let mut dirs: Vec<PathBuf> = Vec::new();

    for path in paths {
        dirs.push(path.unwrap().path());
    }

    return dirs;
}

pub fn is_file(file_path: &str) -> bool {
    let path = Path::new(file_path);
    path.is_file()
}

pub fn file_exists(file_path: &str) -> bool {
    let path = Path::new(file_path);
    path.exists()
}